package com.itheima.dao;

import com.itheima.entity.DateCondition;
import com.itheima.entity.MonthInYear;
import com.itheima.pojo.Member;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface MemberDao {
    Member findByTel(String phoneNumber);

    void add(Member member);

    List<Map> getCountEachMonth(int year);

    Integer getTodayNewMember(Date date);

    Integer getTotalMember();

    Integer getThisWeekNewMember(int year, int weekYear);


    Integer getThisMonthNewMember(int month, int year);

    Integer getNewMemberByCondition(DateCondition dateCondition);

    Integer findByMan();

    Integer findByWoman();

    Integer getCountAgeNumber(Map<String,String> map);

    Integer getMonthMember(Map map);
}
